<?php
/*
 * Plugin Hook: editor
 * Plugin Name: fckeditor编辑器
 * Author: 系统自带插件
 * Version: 1.0
 * Plugin URI: about:blank
 * Description: fckeditor编辑器，一个快速编辑器。
 */
if(!defined('IN_MICECMS')){header("HTTP/1.0 404 Not Found");die();}
function fckeditor($isupload)
{
	$upload='';
	if($isupload==1){
		$upload='<a href="javascript:showMe(document.body.scrollTop)"><img src="'.MICE_URL.MICE_TPL.'/admin/imgs/upfile.gif" border="0"></a>&nbsp;&nbsp;<a href="javascript:showBF(document.body.scrollTop);"><img src="'.MICE_URL.MICE_TPL.'/admin/imgs/browsefile.gif" border="0"></a>';
	}
	$dir=MICE_URL.'plugins/fckeditor/';

	return $upload.'<script type="text/javascript" src="'.$dir.'/'.'fckeditor.js"></script> 
	<script type="text/javascript">
	var miceFCKeditor = new FCKeditor("MCEname") ; 
	miceFCKeditor.BasePath = "'.$dir.'"; 
	miceFCKeditor.Value = \'MCEcontent\'; 
	miceFCKeditor.Height = "400";
	miceFCKeditor.Create() ; 
	</script>';
}
?>